//頁面banner
.page-wrap {
  padding: 55px 0;
  .box-img {
    position: absolute;
    top: 78px;
    z-index: -2;
    width: 100%;
    &:before {
      content: "";
      padding-bottom: 32.638%;
    }
  }
  .title-wrap {
    margin-top: 99px;
    .subtitle {
      margin: 8px 0 145px;
    }
  }
  @include res(phone, to-mb) {
    .title-wrap {
      margin-top: 42px;
      .subtitle {
        margin: 8px 0 53px;
      }
    }
  }
}
// 業務
.sale-item {
  position: relative;
  margin-top: -35px;
  padding-bottom: 85px;
}
// 查詢
.search-item {
  position: relative;
  margin-top: -50px;
  padding-bottom: 85px;
  overflow: hidden;
  .nav-bar {
    background: $bg-light2;
    padding: 27px 0;
    #tab01 {
      max-width: 652px;
      &:lang(en) {
        max-width: 704px;
        .nav-link {
          min-width: 176px;
        }
      }
    }
    .nav {
      position: relative;
      align-items: center;
      flex-wrap: nowrap;
      overflow: auto;
      max-width: 658px;
      margin: 0 auto;
      &:lang(en) {
        max-width: 964px;
      }
      @include res(phone, to-mb) {
        // 因超過數量要出現拉霸,因此不能置中(先限制左右15px)
        margin: 0 15px;
      }
      .nav-item {
        &:first-child {
          &:before {
            background-color: transparent;
          }
        }
        &:before {
          content: "";
          position: absolute;
          width: 1px;
          height: 76%;
          margin: 12px auto;
          background-color: $line-blue;
        }
        .nav-link {
          &:lang(en) {
            min-width: 241px;
          }
          min-width: 163px;
          font-weight: 400;
          font-size: 13px;
          line-height: 24px;
          letter-spacing: 0.05em;
          color: $font-blue-gray;
          text-align: center;
          transition: all 0.3s ease-in-out;
          &:lang(en) {
            white-space: nowrap;
          }
          @include res(phone, to-mb) {
            min-width: 115px;
          }
          .icon-cfs {
            display: block;
            transition: all 0.3s ease-in-out;
            margin: 0 auto 5px;
            position: relative;
            -webkit-mask: url(../img/page/page-tracking-icon1.svg) no-repeat 50%
            50%;
            mask: url(../img/page/page-tracking-icon1.svg) no-repeat 50% 50%;
            -webkit-mask-size: cover;
            mask-size: cover;
            width: 50px;
            height: 50px;
            background-color: $font-blue-gray;
          }
          .icon-cy {
            display: block;
            transition: all 0.3s ease-in-out;
            margin: 0 auto 5px;
            position: relative;
            -webkit-mask: url(../img/page/page-tracking-icon2.svg) no-repeat 50%
            50%;
            mask: url(../img/page/page-tracking-icon2.svg) no-repeat 50% 50%;
            -webkit-mask-size: cover;
            mask-size: cover;
            width: 50px;
            height: 50px;
            background-color: $font-blue-gray;
          }
          .icon-condition {
            display: block;
            transition: all 0.3s ease-in-out;
            margin: 0 auto 5px;
            position: relative;
            -webkit-mask: url(../img/page/page-tracking-icon3.svg) no-repeat 50%
            50%;
            mask: url(../img/page/page-tracking-icon3.svg) no-repeat 50% 50%;
            -webkit-mask-size: cover;
            mask-size: cover;
            width: 50px;
            height: 50px;
            background-color: $font-blue-gray;
          }
          .icon-ocean {
            display: block;
            transition: all 0.3s ease-in-out;
            margin: 0 auto 5px;
            position: relative;
            -webkit-mask: url(../img/page/page-tool-icon1.svg) no-repeat 50% 50%;
            mask: url(../img/page/page-tool-icon1.svg) no-repeat 50% 50%;
            -webkit-mask-size: cover;
            mask-size: cover;
            width: 50px;
            height: 50px;
            background-color: $font-blue-gray;
          }
          .icon-air {
            display: block;
            transition: all 0.3s ease-in-out;
            margin: 0 auto 5px;
            position: relative;
            -webkit-mask: url(../img/page/page-tool-icon2.svg) no-repeat 50% 50%;
            mask: url(../img/page/page-tool-icon2.svg) no-repeat 50% 50%;
            -webkit-mask-size: cover;
            mask-size: cover;
            width: 50px;
            height: 50px;
            background-color: $font-blue-gray;
          }
          .icon-norm {
            display: block;
            transition: all 0.3s ease-in-out;
            margin: 0 auto 5px;
            position: relative;
            -webkit-mask: url(../img/page/page-tool-icon3.svg) no-repeat 50% 50%;
            mask: url(../img/page/page-tool-icon3.svg) no-repeat 50% 50%;
            -webkit-mask-size: cover;
            mask-size: cover;
            width: 50px;
            height: 50px;
            background-color: $font-blue-gray;
          }
          .icon-size {
            display: block;
            transition: all 0.3s ease-in-out;
            margin: 0 auto 5px;
            position: relative;
            -webkit-mask: url(../img/page/page-tool-icon4.svg) no-repeat 50% 50%;
            mask: url(../img/page/page-tool-icon4.svg) no-repeat 50% 50%;
            -webkit-mask-size: cover;
            mask-size: cover;
            width: 50px;
            height: 50px;
            background-color: $font-blue-gray;
          }
          &:hover,
          &.active {
            color: $main-blue;
            .icon-cfs,
            .icon-cy,
            .icon-condition,
            .icon-ocean,
            .icon-air,
            .icon-norm,
            .icon-size {
              background-color: $main-blue;
            }
          }
        }
      }
    }
  }
  #csf-form,
  #cy-form,
  #condition-form {
    margin: 65px auto;
  }
  #ocean-form,
  #air-form,
  #norm-form,
  #size-form {
    margin: 65px auto 0;
  }
  #size-form {
    .form-group {
      text-align: center;
      @include res(phone, to-mb) {
        text-align: left;
      }
      .form-check-inline {
        margin-bottom: 1rem;
      }
    }
  }
  .btn-more {
    width: 142px;
  }
  .text-wrap {
    margin: 35px auto 25px;
    color: $font-red;
  }
  .search-table {
    margin: 39px auto 0;
    tr:first-child th {
      border-radius: 0;
    }
    tr th:first-child {
      border-top-left-radius: 10px;
    }
    tr th:last-child {
      border-top-right-radius: 10px;
    }
  }
  #cfsTable {
    th,
    td {
      white-space: normal !important;
    }
    @include res(xlpad, to-mb) {
      tr {
        margin-bottom: 30px;
      }
    }
  }
  .norm-table {
    margin: 43px auto 0;
    text-align: center;
  }
  .btn-list {
    margin-top: 24px;
  }
}

.box-notice {
  padding: 88px 0;
  background-color: $main-blue;
  .box-img {
    max-width: 170px;
    margin: 0 auto;
    &:before {
      content: "";
      padding-bottom: 86.47%;
    }
  }
  .box-wrap {
    font-weight: 400;
    font-size: 12px;
    line-height: 21px;
    letter-spacing: 0.05em;
    color: $white;
  }
  @include res(phone, to-mb) {
    padding: 50px 0 58px;
  }
}

.inquiry-item {
  position: relative;
  margin-top: -42px;
  padding-bottom: 85px;
  input.form-control {
    border: 1px solid transparent !important;
    &:hover {
      border: 1px solid $line-blue !important;
    }
    &:focus {
      border: 1px solid $main-blue !important;
    }
  }
  .office-wrap {
    position: sticky;
    top: 110px;
    margin-bottom: 24px;
    background-color: $bg-light2;
    border-radius: 10px;
    padding: 55px 33px;
    @include res(phone, to-mb) {
      padding: 30px 15px;
    }
    input.form-control {
      background-color: $white !important;
    }
    [type="radio"]:not(:checked) + label:before,
    [type="radio"]:checked + label:before {
      background: $white;
    }
  }
  .cargo-wrap {
    .title {
      color: $font-blue;
      margin-bottom: 24px;
    }
    textarea {
      resize: none;
    }
  }
  .btn-more {
    width: 112px;
  }
}
.robot-area {
  margin: 59px auto 30px;
  text-align: center;
}

// 聯絡我們
.contact-item {
  position: relative;
  margin-top: -42px;
  padding-bottom: 85px;
  .card-contact {
    margin-top: 34px;
    overflow: hidden;
  }
  .contact-table {
    text-align: center;
    margin-bottom: 0;
    td {
      white-space: normal;
      word-break: break-word;
    }
    tr:first-child th {
      border-radius: 0;
    }
    tr th:first-child {
      border-top-left-radius: 10px;
    }
    tr th:last-child {
      border-top-right-radius: 10px;
    }
    a {
      color: $font-black;
      &:hover {
        color: $font-blue;
      }
    }
  }
}
// 關於我們
.about-item {
  position: relative;
  margin-top: -50px;
  padding-bottom: 85px;
  .news-list {
    margin-bottom: 24px;
  }
  .list-page {
    margin-top: 61px;
  }
  .desc-wrap {
    color: $font-black;
    margin-bottom: 85px;
    @include res(phone, to-mb) {
      margin-bottom: 53px;
    }
  }
  .card-warehouse {
    min-height: 355px;
    margin-bottom: 47px;
    @include res(xlpad, to-mb) {
      min-height: 423px;
    }
  }
}
.about-office {
  padding: 85px 0 55px;
  background: $bg-gd-light;
  .office-box {
    margin-bottom: 30px;
    .office-wrap {
      position: relative;
      height: 100%;
      border-radius: 8px;
      display: flex;
      align-items: center;
      background-color: $white;
      overflow: hidden;
      .box-img {
        padding: 0;
        background-position: left;
        border-radius: 8px 0px 0px 8px;
        background-size: cover;
        height: 100%;
        &:before {
          content: "";
          padding-bottom: 90.1%;
        }
      }
      .cont-wrap {
        padding: 0 20px 0 26px;
        @include res(xlpad, to-mb) {
          padding: 15px;
        }
        @include res(phone, to-mb) {
          padding: 20px;
        }
        .title {
          color: $font-blue;
        }
        .desc {
          color: $font-gray;
          i {
            color: $font-blue-gray;
            margin-right: 10px;
          }
        }
      }
    }
  }
}
// 解決方案
.solution-one {
  background: $bg-gd-light;
  padding: 55px 0;
  &:before {
    content: "";
    background-image: url("../img/page-deco-w.png");
    position: absolute;
    display: block;
    background-position: right;
    background-repeat: no-repeat;
    top: 78px;
    width: 100%;
    height: 357px;
  }
  .breadcrumb {
    position: relative;
    z-index: 1;
  }
  .title-wrap {
    margin-top: 42px;
  }
  .nav-slider {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    transition-delay: 0.1s;

    &.slick-initialized {
      visibility: visible;
      opacity: 1;
    }
    .item-box {
      max-width: 100%;
      text-align: center;
      .img-wrap {
        position: relative;
        margin: 0 auto;
        width: 70px;
        height: 65px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        &::before {
          transition: all 0.5s ease-in-out;
          content: "";
          display: block;
          position: absolute;
          z-index: -1;
          left: 42px;
          bottom: -8px;
          width: 31px;
          height: 31px;
          border-radius: 50%;
          background-color: $deco1;
        }
      }
      .txt {
        color: $font-black;
        margin: 16px auto 0;
        padding: 0 15px;
        word-break: break-word;
        @include res(xlpad, to-mb) {
          padding: 0 calc(15% + 15px);
        }
        &::after {
          transition: all 0.5s ease-in-out;
          content: "";
          display: block;
          width: 6px;
          height: 6px;
          border-radius: 100%;
          background: $main-blue;
          margin: 2px auto;
          opacity: 0;
        }
      }
      &:hover {
        transition: all 0.5s ease-in-out;
        .img-wrap {
          &::before {
            width: 41px;
            height: 41px;
          }
        }
        .txt {
          &::after {
            opacity: 1;
          }
        }
      }
    }
  }
  .news-list {
    position: relative;
    z-index: 2;
    margin-top: 152px;
    @include res(phone, to-mb) {
      margin-top: 53px;
    }
  }
  .desc-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 221px;
    color: $font-black;
    text-align: center;
    @include res(phone, to-mb) {
      margin-bottom: 168px;
    }
  }
}
.solution-two {
  padding: 56px 0 61px;
  .news-list {
    margin-bottom: 24px;
    a {
      display: flex;
    }
  }
}
.solution-item {
  position: relative;
  margin-top: -130px;
  padding-bottom: 85px;
}

.article-wrap {
  padding: 55px 0 85px;
  &:before {
    content: "";
    background-image: url("../img/page-deco.png");
    position: absolute;
    display: block;
    background-position: right;
    background-repeat: no-repeat;
    top: 78px;
    width: 100%;
    height: 454px;
  }
  .breadcrumb {
    position: relative;
    z-index: 1;
  }
  .article-box {
    padding: 0;
    .title {
      color: $font-black;
      margin: 99px auto 62px;
      @include res(phone, to-mb) {
        margin: 0 auto 20px;
      }
    }
    .article-area {
      margin-bottom: 85px;
    }
  }
}

// 成功,錯誤,維護
.page-cont {
  padding: 118px 0 112px;
  &:before {
    content: "";
    background-image: url("../img/page-deco.png");
    position: absolute;
    display: block;
    background-position: right;
    background-repeat: no-repeat;
    top: 78px;
    width: 100%;
    height: 454px;
  }
  .error {
    color: $font-gray !important;
  }
  .icon {
    position: relative;
    width: 85px;
    margin: 47px auto 40px;
    &:before {
      transition: all 0.5s ease-in-out;
      content: "";
      display: block;
      position: absolute;
      z-index: -1;
      right: -6px;
      bottom: 0;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background-color: $deco1;
    }
  }
  .btn-more {
    width: 112px;
    margin: 31px auto 0;
    span {
      font-weight: 400;
      font-size: 14px;
      line-height: 140%;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      color: $white;
    }
  }
}

//打勾項目
.check-item {
  margin-top: 30px;
  .check-icon {
    display: inline-block;
    color: #3beedc;
    margin-right: 5px;
    transform: rotate(7.06deg);
  }
  .check-text {
    color: #f8f8f8;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.5px;
  }
  &:nth-child(2) {
    @include res(phone, to-mb) {
      margin-top: 0px;
    }
  }
}

//圓角按鈕
.btn-round {
  width: 130px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background-color: #eaa800;
  padding: 0px;
  font-size: 14px;
  letter-spacing: 0.5px;
  &:hover {
    color: #ffb800;
    border: 1px solid #ffb800 !important;
    background: transparent;
  }
  @include res(phone, to-mb) {
    margin-left: 20px;
  }
}

//mobile rwd
.d-mobile {
  display: none;
  @include res(phone, to-mb) {
    display: block;
  }
}
.d-desktop {
  display: block;
  @include res(phone, to-mb) {
    display: none;
  }
}
